package cn.edu.neu.studentmsg_java.dao;

import cn.edu.neu.studentmsg_java.model.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseDao {
    List<Course> selectCoursePart(Course course);

    int deleteCourseById(Integer courseId);

    int insertCourse(Course course);

    int updateCourseById(Course course);

    Integer selectCourseIdByCourseName(String course_name);

    int CategoryIsOneByCourseName(String course_name);

    List<Course> selectMajorCourses();

    List<Course> selectMinorCourses();

    List<String> selectCourseName();

    int selectCategoryByCourseId(Integer course_id);

    Course selectSCourseByCourseId(Integer course_id);

    List<String> selectMinorCourseName();

    String selectCourseNameByCourseId(Integer course_id);
}
